<#-- Freemarker macros provided by gnizr -->
<#include "/lib/web/macro-lib.ftl"/>

<#-- macro builds the heading HTML -->
<@pageBegin pageTitle="Gnizr HelloWorld Page" cssHref=[]/>

<#-- macro builds the HTML of the top menu bar, search box etc. -->
<@headerBlock/>

<#-- macro builds the HTML of the page body -->
<@pageContent>

  <#-- the meat of our Hello World -->
  <p>Hello World!</p>
  <#if message?exists>
    <ul><li>Message: ${message}</li></ul>
    <ul><li>The current time is: ${date?datetime}</li></ul>
  </#if>

  <form action="sayHello.action" method="post">
  Message: <input type="text" width=50 name="message"><p>
  <input type="submit"><p>
  </form>

</@pageContent>

<#-- macro build the HTML of page footer -->
<@pageEnd/>
